package tv.danmaku.ijk.media.player.pragma;

import android.util.Log;
import java.util.Locale;

public class DebugLog {
    public static final boolean ENABLE_DEBUG = true;
    public static final boolean ENABLE_ERROR = true;
    public static final boolean ENABLE_INFO = true;
    public static final boolean ENABLE_VERBOSE = true;
    public static final boolean ENABLE_WARN = true;

    public DebugLog() {

    }

    public static void d(String arg0, String arg1) {
        Log.d(arg0, arg1);
    }

    public static void d(String arg0, String arg1, Throwable arg2) {
        Log.d(arg0, arg1, arg2);
    }

    public static void dfmt(String arg1, String arg2, Object[] arg3) {
        Log.d(arg1, String.format(Locale.US, arg2, arg3));
    }

    public static void e(String arg0, String arg1) {
        Log.e(arg0, arg1);
    }

    public static void e(String arg0, String arg1, Throwable arg2) {
        Log.e(arg0, arg1, arg2);
    }

    public static void efmt(String arg1, String arg2, Object[] arg3) {
        Log.e(arg1, String.format(Locale.US, arg2, arg3));
    }

    public static void i(String arg0, String arg1) {
        Log.i(arg0, arg1);
    }

    public static void i(String arg0, String arg1, Throwable arg2) {
        Log.i(arg0, arg1, arg2);
    }

    public static void ifmt(String arg1, String arg2, Object[] arg3) {
        Log.i(arg1, String.format(Locale.US, arg2, arg3));
    }

    public static void printCause(Throwable arg1) {
        Throwable v0 = arg1.getCause();
        if(v0 != null) {
            arg1 = v0;
        }

        DebugLog.printStackTrace(arg1);
    }

    public static void printStackTrace(Throwable arg0) {
        arg0.printStackTrace();
    }

    public static void v(String arg0, String arg1) {
        Log.v(arg0, arg1);
    }

    public static void v(String arg0, String arg1, Throwable arg2) {
        Log.v(arg0, arg1, arg2);
    }

    public static void vfmt(String arg1, String arg2, Object[] arg3) {
        Log.v(arg1, String.format(Locale.US, arg2, arg3));
    }

    public static void w(String arg0, String arg1) {
        Log.w(arg0, arg1);
    }

    public static void w(String arg0, String arg1, Throwable arg2) {
        Log.w(arg0, arg1, arg2);
    }

    public static void wfmt(String arg1, String arg2, Object[] arg3) {
        Log.w(arg1, String.format(Locale.US, arg2, arg3));
    }
}

